module.exports = {
    publicPath: './', // 打包文件相对路径
    devServer: {
      open: true,
      host: 'localhost',
      port: 8080,
      https: false,
      hotOnly: false,
       proxy: {
         // 配置跨域
         '/json': { 
          target: 'http://127.0.0.1:3000/json/',
           ws: true,
          changOrigin: true,
         pathRewrite: {
           '^/json': ''
           }
        }
       },
      before: app => {}
    }
  };